<dt id="fanpages-label">
	<label id="select-fanpage"><?php echo $this->translate("FANPAGES"); ?></label>
</dt>
<dd>
	<?php if(!count($this->element->getMultiOptions())): ?>
		<div id="load_my_fanpage" style="clear: both; margin-bottom: 5px;">
			<span class="btn_green">
				<a name="reload" id="reload" href="javascript:void(0);" title="Load My Fanpages">Load My Fanpages</a>
			</span>
		</div>
	<?php endif; ?>
	<ul class="sm_listfan">
		<?php foreach($this->element->getMultiOptions() as $key => $value): ?>
			<li>
				<input
					name="<?php echo $this->element->getName() ?>[]"
					value="<?php echo $key ?>"
					type="checkbox"
					<?php if( $this->element->getAttrib('disable') ):?>
						<?php if( in_array($key,$this->element->getAttrib('disable')) ):?>
							disabled="disabled"
						<?php endif;?>
					<?php endif;?>
					<?php if( $this->element->getValue() ):?>
						<?php echo in_array($key,$this->element->getValue())?'checked="checked"':'' ?>
					<?php endif;?>
				/> 
                <span class="tooltip_label" title="<?php echo trim($value); ?>">
                    <?php echo trim($value); ?>
                </span>
			</li>
		<?php endforeach; ?>
	</ul> 
    <?php if( $this->element->hasErrors() ):?>
        <ul class="errors">
        <?php foreach( $this->element->getMessages() as $message ):?>
            <li>
                <?php echo $message;?>
            </li>
        <?php endforeach;?>
        </ul>
    <?php endif;?>
</dd>
